﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LP580.CG;

public partial class TempDataTools : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        List<clsUserCompanyInfo> ls = clsUserCompanyInfo.GetCollection();
        foreach (clsUserCompanyInfo com in ls)
        {
            com.ClassCode = clsCompanyClass.NameToCode(com.SalesType.Replace("礼品", ""));
            clsUserCompanyInfo.Update(com);            
        }
        Utils.WrAlertGo("处理完成！", "TempDataTools.aspx");
    }
}